public class Max {
    public static int max(int a, int b){
        int max = a > b ? a : b;
        return max;
    }
    public static double max(double a, double b, double c){
        double max = (a > b ? a : b) > c ? (a > b ? a : b) : c;
        return max;
    }

    public static void main(String[] args) {
        System.out.println(max(1,2.8,2));
    }
}
